<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:2px;">
      <tr >
<td width="100%" align="left" bgcolor="#CCFF00" style="padding:5px;"><strong><a href="{$url_admin}">QUẢN TRỊ TÀI LIỆU</a></strong>      <span style="padding:5px">[ <a href="{$url_add}"><strong>Thêm  mới </strong></a> ] </span>  <strong>[<a href="download.html">Danh sách tài liệu</a>]</tr>
	  <tr >
        <td width="100%" align="center" >
			<table style="margin-top:2px; border:1px solid #999999;" width="100%" border="0" cellpadding="5" cellspacing="1" class="adminlist" bgcolor="#FFFFFF" > 
				  <tr>
				    <td height="30" colspan="5" align="left">{$msg}</td>
		      </tr>
				  <tr>
						<td width="12%" align="right" height="30"><strong><span class="style3">T&#7915; kh&oacute;a:</span></strong></td>
						<td width="28%" align="center"><input name="key_word" type="text" id="key_word" value="{$key_word}" style="width:90% " /></td>
						<td width="10%" align="right"><strong>Trạng thái:</strong></td>
						<td colspan="2">
						  <select name="status"  id="status">
						  
							{$status_option}
					    </select>
						 &nbsp;&nbsp;&nbsp;&nbsp;</td>
			  </tr>
					<tr>
					  <td align="right" height="30"><strong>Người tạo:</strong></td>
					  <td align="center"><input name="user_c" type="text" id="user_c" value="{$user_c}" style="width:90% " /></td>
					  <td align="right"><strong>Người sửa</strong></td>
					  <td align="left"><input name="user_m" type="text" id="user_m" value="{$user_m}" style="width:90% " /></td>
					  <td style="padding:10px">&nbsp;</td>
			  </tr>
					<tr>
					<td width="12%" align="right" height="30"><strong><span class="style3">Up t&#7915;:</span></strong></td>
					<td width="28%" align="center"><select name="cmb_date1" style="width:28%; ">
					  
						    {$option_date1}
						
					      
					  </select>
&nbsp;
<select name="cmb_month1"  style="width:28%; ">
  
						    {$option_month1} 
					      
</select>
&nbsp;
<select name="cmb_year1"  style="width:28%; ">
  
					        {$option_year1} 
				          
</select></td>
					<td width="10%" align="right"><strong>Đến:</strong></td>
					<td width="30%" align="left"><span class="style4">
					  <select name="cmb_date2" style="width:28% ">
					    
					      
						  
							 {$option_date2}
						 
					    
					    
				    </select>
                      <select name="cmb_month2" style="width:28% ">
                        
					      
						  
							{$option_month2}
						
					    
					    
                      </select>
                      <select name="cmb_year2" style="width:28% ">
                        
					      
						  
						 {$option_year2}
						
					    
					    
                      </select>
                    </span></td>
						
					<td width="20%" style="padding:10px"><input name="submit" type="submit" class="button" value="Tìm kiếm" id="submit" /></td>
				</tr>
				</table>
                
                
        	{if $documents}                
<div style="display:block; padding:10px;" align="left">
                            {$paging} &nbsp;&nbsp;
            </div>
                        
                <table width="100%%" border="0" cellpadding="4" cellspacing="0" align="center" bgcolor="#FFFFFF">
                  <tr align="left">
                    <td width="6%" align="left" bgcolor="#81D36B" ><strong>ID</strong></td>
                    <td width="11%" height="25" align="left" bgcolor="#81D36B" class="list"><strong>Tên tài liệu</strong>
                    <td width="22%" height="25" align="left" bgcolor="#81D36B" ><strong>Mô tả
                    </strong>
                    
                    <td width="8%" align="left" bgcolor="#81D36B" ><strong>Url</strong></td>
                    <td width="8%" height="25" align="right" bgcolor="#81D36B" ><strong>Tạo</strong></td>
                    <td width="9%" align="right" bgcolor="#81D36B" ><strong>Sửa </strong></td>
                    <td width="12%" align="right" bgcolor="#81D36B" class="list"><strong>Lượt down</strong><strong></strong>
                    <td width="10%" align="right" bgcolor="#81D36B" class="list"><strong>Down lần cuối                  </strong>                    
                    <td width="10%" align="center" bgcolor="#81D36B" class="list"><strong>Trạng thái</strong></td>
                  <td width="12%" height="25" align="center" bgcolor="#81D36B" class="list">                  <strong>Thao tác				  </strong>				  				  </tr>
                  {foreach from=$documents item=item}
                      <tr valign="top" bgcolor="{$item.bgcolor}"  >
                        <td width="6%" valign="top" >{$item.id}</td>
                        <td valign="top" ><p><a href="{$item.document_detail}" target="_blank"><strong>{$item.title}</strong></a><br />
                        </p>					  </td>
                        <td valign="top" >{$item.des}</td>
                        <td width="8%" align="left" >{$item.url}</td>
                        <td width="8%" align="right" >
                        {$item.time_c}</td>
                        <td align="right" >{$item.time_m}</td>
                        <td width="12%" align="right" >{$item.down_num}</td>
                        <td width="10%" align="right" valign="top" >{$item.time_last}</td>
                        <td width="10%" align="center" >{$item.status}</td>
                        <td align="center" valign="top" nowrap="nowrap" >					<span class="ml10">{$item.change}</span> <span class="ml10">{$item.edit}</span> <span class="ml10">{$item.delete}</span></td>
                      </tr>
                      <tr> 
                      <td colspan="10">
                      <div style="border-bottom:solid 1px #339900" align="right">
                        {$item.admin_link}				 
                      </div>
                     </td>
                      </tr>  
                  {/foreach}
          </table>
            
            <div style="display:block; padding:10px" align="left">
            {$paging}
</div>
                
            {/if}
    	</td>
 	</tr>
</table>